package com.hqyj.lx.dao;


import com.hqyj.lx.pojo.Exampaper;
import com.hqyj.lx.pojo.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
*
*   试题功能
* */
public interface QuestionDao {
    //查询全部试题
    List<Question> queryAllQuestion();

    //增加一道试题
    int insertOneQuestion(Question one);

    //删除一道试题
    int deleteOneQuestion(int quesId);

    //修改试题
    int updateOneQuestion(Question question);

    //通过id查试题
    Question questionQueryById(int quesId);

    //通过课程名查询试题，用于生成预览试卷
    List<Question> questionQueryByCourseName(String courseName);
    //通过题型进行查询quesType
    List<Question> questionQueryByQuesType(@Param("courseName")String courseName, @Param("quesType")String quesType);
}
